def zoomdata(j=[5, 10], s=[3, 10], n=3):
    if n > s[1]:
        x = 10
    else:
        x = (n - s[0]) / (s[1] - s[0])
        x = (j[1] - j[0]) * x + j[0]
    return round(x)